<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>AsyncTestCase (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">testing.AsyncTestCase</span>
        <span>Extends</span>
        <span class="fn-name">
          <a href="class_goog_testing_TestCase.html">
          goog.testing.TestCase
</a>
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    A test case that is capable of running tests the contain asynchronous logic.

  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_testing_asynctestcase.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/testing/asynctestcase.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td><span class="type"><a href="class_goog_testing_TestCase.html">goog.testing.TestCase</a></span></td><td></td></tr>
  <tr><td>goog.testing.AsyncTestCase</td><td><span class="type"><a href="class_goog_testing_TestCase.html">goog.testing.TestCase</a></span></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
      <tr><td><span class="type"><a href="class_goog_testing_DeferredTestCase.html">goog.testing.DeferredTestCase</a></span></td><td>goog.testing.AsyncTestCase</td></tr>
  </table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.testing.AsyncTestCase(<span><span class="arg">opt_name</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_name</span>
        : <span class="type">string=</span>
        <div class="entryOverview">A descriptive name for the test case.</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_testing_AsyncTestCase.html">
              goog.testing.AsyncTestCase
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.callTopOfStackFunc_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">callTopOfStackFunc_<span class="args">(<span class="arg">func</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type">goog.testing.AsyncTestCase.TopStackFuncResult_</span>
      </div>


     <div class="entryOverview">
       Calls the given function, redirecting any exceptions to doAsyncError.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">func</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>
        <div class="entryOverview">The function to call.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type">goog.testing.AsyncTestCase.TopStackFuncResult_</span>&nbsp;
            Returns a
TopStackFuncResult_.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line749">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.continueTesting"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">continueTesting<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Continue with the next step in the test cycle.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line377">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.cycleTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">cycleTests<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Starts the tests.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line512">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.dbgLog_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">dbgLog_<span class="args">(<span class="arg">message</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Logs the given debug message to the console (when enabled).

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">message</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The message to log.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line544">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doAsyncError"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doAsyncError<span class="args">(<span class="arg">opt_e</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles an exception thrown by a test.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_e</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The exception object associated with the failure
    or a string.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line439">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doAsyncErrorTearDown_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doAsyncErrorTearDown_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Calls the tearDown function, catching any errors, and then moves on to
the next step in the testing cycle.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line582">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doExecute_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doExecute_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Step 3: Call test.execute().

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line872">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doIteration_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doIteration_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Step 1: Move to the next test.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line836">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doNext_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doNext_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Step 5: Call doSuccess()

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line893">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doSetUpPage_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doSetUpPage_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets up the test page and then waits untill the test case has been marked
as ready before executing the tests.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line826">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doSetUp_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doSetUp_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Step 2: Call setUp().

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line860">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doTearDown_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doTearDown_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Step 4: Call tearDown().

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line882">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.doTopOfStackAsyncError_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doTopOfStackAsyncError_<span class="args">(<span class="arg">opt_e</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Wraps doAsyncError() for when we are sure that the test runner has no user
code above it in the stack.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_e</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">Error=</span>
        <div class="entryOverview">The exception object associated with the
    failure or a string.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line558">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.enableDebugLogging"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">enableDebugLogging<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Enables verbose logging of what is happening inside of the AsyncTestCase.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line534">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.endCurrentStep_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">endCurrentStep_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Ends the current test step and queues the next test step to run.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line390">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.finalize"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">finalize<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Finalizes the test case, called when the tests have finished executing.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line524">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.getCurrentStepName"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getCurrentStepName<span class="args">()</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       The current step name.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            Step name.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line341">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.hookAssert_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">hookAssert_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Replaces the asserts.js assert_() and fail() functions with a wrappers to
catch the exceptions.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line622">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.hookOnError_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">hookOnError_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets a window.onerror handler for catching exceptions that happen in async
callbacks. Note that as of Safari 3.1, Safari does not support this.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line654">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.pump_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">pump_<span class="args">(<span class="arg">opt_doFirst</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Calls the next callback when the isReady_ flag is true.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_doFirst</span>
        : <span class="type">Function=</span>
        <div class="entryOverview">A function to call before pumping.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line776">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.runTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">runTests<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets up the test page and then waits until the test case has been marked
as ready before executing the tests.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line498">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.setNextStep_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setNextStep_<span class="args">(<span class="arg">func</span>,&nbsp;<span class="arg">name</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the next function to call in our sequence of async callbacks.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">func</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>
        <div class="entryOverview">The function that executes the next step.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">name</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">A description of the next step.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line736">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.signal"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">signal<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Signals once to continue with the test. If this is the last signal that the
test was waiting on, call continueTesting.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line425">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.startTimeoutTimer_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">startTimeoutTimer_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Enables the timeout timer. This timer fires unless continueTesting is
called.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line703">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.stopTimeoutTimer_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">stopTimeoutTimer_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Disables the timeout timer.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line721">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.unhookAll_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">unhookAll_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Unhooks window.onerror and _assert.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line686">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.waitForAsync"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">waitForAsync<span class="args">(<span class="arg">opt_name</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Informs the testcase not to continue to the next step in the test cycle
until continueTesting is called.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_name</span>
        : <span class="type">string=</span>
        <div class="entryOverview">A description of what we are waiting for.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line364">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.prototype.waitForSignals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">waitForSignals<span class="args">(<span class="arg">times</span>,&nbsp;<span class="arg">opt_name</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Informs the testcase not to continue to the next step in the test cycle
until signal is called the specified number of times. Within a test, this
function behaves additively if called multiple times; the number of signals
to wait for will be the sum of all expected number of signals this function
was called with.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">times</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The number of signals to receive before
   continuing testing.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_name</span>
        : <span class="type">string=</span>
        <div class="entryOverview">A description of what we are waiting for.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line412">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>

<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_testing_TestCase.html">
              goog.testing.TestCase
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.add"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">add<span class="args">(<span class="arg">test</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Adds a new test to the test case.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">test</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
        <div class="entryOverview">The test to add.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line289">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.addNewTest"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addNewTest<span class="args">(<span class="arg">name</span>,&nbsp;<span class="arg">ref</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Creates and adds a new test.

Convenience function to make syntax less awkward when not using automatic
test discovery.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">name</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The test name.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">ref</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>
        <div class="entryOverview">Reference to the test function.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <span>!</span><span class="type">Object=</span>
        <div class="entryOverview">Optional scope that the test function should be
    called in.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line310">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.autoDiscoverTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">autoDiscoverTests<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Adds any functions defined in the global scope that are prefixed with "test"
to the test case.  Also overrides setUp, tearDown, setUpPage, tearDownPage
and runTests if they are defined.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line743">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.clearTimeout"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">clearTimeout<span class="args">(<span class="arg">id</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Clears a timeout created by <code> this.timeout()</code>.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">A timeout id.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line907">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.countNumFilesLoaded_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">countNumFilesLoaded_<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Counts the number of files that were loaded for dependencies that are
required to run the test.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The number of files loaded.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line874">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.createTestFromAutoDiscoveredFunction"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">createTestFromAutoDiscoveredFunction<span class="args">(<span class="arg">name</span>,&nbsp;<span class="arg">ref</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
      </div>


     <div class="entryOverview">
       Creates a <code> goog.testing.TestCase.Test</code> from an auto-discovered
    function.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">name</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The name of the function.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">ref</span>
        : <span class="type">function() : void</span>
        <div class="entryOverview">The auto-discovered function.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&nbsp;
            The newly created test.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line732">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.cycleTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">cycleTests<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Cycles through the tests, breaking out using a setTimeout if the execution
time has execeeded <code> #MAX_RUN_TIME</code>.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line819">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.doError"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doError<span class="args">(<span class="arg">test</span>,&nbsp;<span class="arg">opt_e</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a test that failed.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">test</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
        <div class="entryOverview">The test that failed.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_e</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The exception object associated with the
    failure or a string.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line992">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.doSuccess"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">doSuccess<span class="args">(<span class="arg">test</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles a test that passed.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">test</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
        <div class="entryOverview">The test that passed.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line972">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.execute"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">execute<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Executes each of the tests.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line405">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.finalize"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">finalize<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Finalizes the test case, called when the tests have finished executing.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line427">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getActuallyRunCount"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getActuallyRunCount<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Returns the number of tests actually run in the test case, i.e. subtracting
any which are skipped.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The number of un-ignored tests.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line350">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getAutoDiscoveryPrefix"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getAutoDiscoveryPrefix<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The function name prefix used to auto-discover tests.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line701">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getBatchTime"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getBatchTime<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            Time since the last batch of tests was started.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line710">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getCount"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getCount<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Returns the number of tests contained in the test case.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The number of tests.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line340">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getGlobals"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getGlobals<span class="args">(<span class="arg">opt_prefix</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
      </div>


     <div class="entryOverview">
       Gets the object with all globals.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_prefix</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional prefix. If specified, only get things
    under this prefix. Note that the prefix is only honored in IE, since it
    supports the RuntimeObject:
    <a href="http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx</a>
    TODO: Fix this method to honor the prefix in all browsers.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>&nbsp;
            An object with all globals starting with the prefix.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line645">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getName"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getName<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The name of the test.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line153">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getNumFilesLoaded"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getNumFilesLoaded<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Returns the number of script files that were loaded in order to run the test.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The number of script files.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line570">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getReport"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getReport<span class="args">(<span class="arg">opt_verbose</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns a string detailing the results from the test.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_verbose</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">If true results will include data about all
    tests, not just what failed.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The results from the test.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line529">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getRunTime"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getRunTime<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Returns the amount of time it took for the test to run.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The run time, in milliseconds.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line561">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getTestResults"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getTestResults<span class="args">()</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>,<span class="type"> !Array</span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&gt;
      </div>


     <div class="entryOverview">
       Returns the test results object: a map from test names to a list of test
failures (if any exist).

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>,<span class="type"> !Array</span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;&gt;&nbsp;
            Tests results object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line580">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getTests<span class="args">()</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&gt;
      </div>


     <div class="entryOverview">
       Gets the tests.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&gt;&nbsp;
            The test array.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line331">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.getTimeStamp_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">getTimeStamp_<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns the current time.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            HH:MM:SS.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line931">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.isInsideMultiTestRunner"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">isInsideMultiTestRunner<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the test case is running inside the multi test
    runner.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line485">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.isSuccess"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">isSuccess<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the test was a success.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line518">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.log"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">log<span class="args">(<span class="arg">val</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Logs an object to the console, if available.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">val</span>
        : <span class="type">*</span>
        <div class="entryOverview">The value to log. Will be ToString'd.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line495">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.logError"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">logError<span class="args">(<span class="arg">name</span>,&nbsp;<span class="arg">opt_e</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_testing_TestCase_Error.html">goog.testing.TestCase.Error</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">name</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Failed test name.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_e</span>
        : <span class="type">*=</span>
        <div class="entryOverview">The exception object associated with the
    failure or a string.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_testing_TestCase_Error.html">goog.testing.TestCase.Error</a></span>&nbsp;
            Error object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line1012">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.maybeFailTestEarly"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">maybeFailTestEarly<span class="args">(<span class="arg">testCase</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Checks to see if the test should be marked as failed before it is run.

If there was an error in setUpPage, we treat that as a failure for all tests
and mark them all as having failed.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">testCase</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
        <div class="entryOverview">The current test case.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether the test was marked as failed.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line804">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.next"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">next<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
      </div>


     <div class="entryOverview">
       Returns the current test and increments the pointer.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&nbsp;
            The current test case.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line359">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.now"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">now<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The current time in milliseconds, don't use goog.now as some
    tests override it.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line919">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.orderTests_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">orderTests_<span class="args">(<span class="arg">tests</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Reorders the tests depending on the <code> order</code> field.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">tests</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&gt;
        <div class="entryOverview">An array of tests to
    reorder.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line607">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.pad_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">pad_<span class="args">(<span class="arg">number</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Pads a number to make it have a leading zero if it's less than 10.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">number</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The number to pad.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The resulting string.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line951">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.reset"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">reset<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Resets the test case pointer, so that next returns the first test.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line374">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.runTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">runTests<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Executes each of the tests.
Overridable by the individual test case.  This allows test cases to defer
when the test is actually started.  If overridden, finalize must be called
by the test to indicate it has finished.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line591">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.saveMessage"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">saveMessage<span class="args">(<span class="arg">message</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Saves a message to the result set.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">message</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The message to save.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line476">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.setBatchTime"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setBatchTime<span class="args">(<span class="arg">batchTime</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">batchTime</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Time since the last batch of tests was started.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line719">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.setCompletedCallback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setCompletedCallback<span class="args">(<span class="arg">fn</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the callback function that should be executed when the tests have
completed.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">fn</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>
        <div class="entryOverview">The callback function.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line385">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.setTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setTests<span class="args">(<span class="arg">tests</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the tests.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">tests</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>&gt;
        <div class="entryOverview">A new test array.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line321">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.setUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Gets called before every goog.testing.TestCase.Test is been executed. Can be
overridden to add set up functionality to each test.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line687">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.setUpPage"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">setUpPage<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Gets called before any tests are executed.  Can be overridden to set up the
environment for the whole test case.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line673">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.shouldRunTests"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">shouldRunTests<span class="args">()</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Can be overridden in test classes to indicate whether the tests in a case
should be run in that particular situation.  For example, this could be used
to stop tests running in a particular browser, where browser support for
the class under test was absent.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether any of the tests in the case should be run.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line397">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.tearDown"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">tearDown<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Gets called after every goog.testing.TestCase.Test has been executed. Can be
overriden to add tear down functionality to each test.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line694">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.tearDownPage"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">tearDownPage<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Gets called after all tests have been executed.  Can be overridden to tear
down the entire test case.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line680">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.timeout"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">timeout<span class="args">(<span class="arg">fn</span>,&nbsp;<span class="arg">time</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
      </div>


     <div class="entryOverview">
       Calls a function after a delay, using the protected timeout.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">fn</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span>
        <div class="entryOverview">The function to call.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">time</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Delay in milliseconds.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>&nbsp;
            The timeout id.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line893">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.TestCase.prototype.trimPath_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">trimPath_<span class="args">(<span class="arg">path</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Trims a path to be only that after google3.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">path</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The path to trim.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The resulting string.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line962">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_testing_AsyncTestCase.html">
              goog.testing.AsyncTestCase
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry protected">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.activeTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">activeTest</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Test.html">goog.testing.TestCase.Test</a></span>
     </div>


     <div class="entryOverview">
       The currently active test.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line280">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.cleanedUp_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">cleanedUp_</span>
        : 
     </div>


     <div class="entryOverview">
       Marks if the cleanUp() function has been called for the currently running
test.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line272">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.constructor"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">constructor</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line125">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.curStepFunc_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">curStepFunc_</span>
        : 
     </div>


     <div class="entryOverview">
       The stage of the test we are currently on.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line231">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.curStepName_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">curStepName_</span>
        : 
     </div>


     <div class="entryOverview">
       The name of the stage of the test we are currently on.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line239">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.enableDebugLogs_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">enableDebugLogs_</span>
        : 
     </div>


     <div class="entryOverview">
       Turn on extra logging to help debug failing async. tests.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line201">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.expectedSignalCount_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">expectedSignalCount_</span>
        : 
     </div>


     <div class="entryOverview">
       Number of signals to wait for before continuing testing when waitForSignals
is used.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line305">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.inException_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">inException_</span>
        : 
     </div>


     <div class="entryOverview">
       A flag to prevent recursive exception handling.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line288">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.isReady_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">isReady_</span>
        : 
     </div>


     <div class="entryOverview">
       Flag used to determine if we can move to the next step in the testing loop.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line296">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.nextStepFunc"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">nextStepFunc</span>
        : 
     </div>


     <div class="entryOverview">
       The stage of the test we should run next.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line247">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.nextStepName_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">nextStepName_</span>
        : 
     </div>


     <div class="entryOverview">
       The name of the stage of the test we should run next.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line255">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.numControlExceptionsExpected_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">numControlExceptionsExpected_</span>
        : 
     </div>


     <div class="entryOverview">
       The number of times we have thrown a ControlBreakingException so that we
know not to complain in our window.onerror handler. In Webkit, window.onerror
is not supported, and so this counter will keep going up but we won't care
about it.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line333">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.origAssert_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">origAssert_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line691">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.origFail_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">origFail_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line693">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.origOnError_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">origOnError_</span>
        : 
     </div>


     <div class="entryOverview">
       A reference to the original window.onerror function.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line223">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.receivedSignalCount_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">receivedSignalCount_</span>
        : 
     </div>


     <div class="entryOverview">
       Number of signals received.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line313">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.returnWillPump_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">returnWillPump_</span>
        : 
     </div>


     <div class="entryOverview">
       Flag that tells us if there is a function in the call stack that will make
a call to pump_().

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line322">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.stepTimeout"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">stepTimeout</span>
        : 
     </div>


     <div class="entryOverview">
       How long to wait for a single step of a test to complete in milliseconds.
A step starts when a call to waitForAsync() is made.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line184">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.timeToSleepAfterFailure"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">timeToSleepAfterFailure</span>
        : 
     </div>


     <div class="entryOverview">
       How long to wait after a failed test before moving onto the next one.
The purpose of this is to allow any pending async callbacks from the failing
test to finish up and not cause the next test to fail.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line193">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.prototype.timeoutHandle_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">timeoutHandle_</span>
        : 
     </div>


     <div class="entryOverview">
       The handle to the current setTimeout timer.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line263">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>

<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_testing_TestCase.html">
              goog.testing.TestCase
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.batchTime_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">batchTime_</span>
        : 
     </div>


     <div class="entryOverview">
       Time since the last batch of tests was started, if batchTime exceeds
<code> #MAX_RUN_TIME</code> a timeout will be used to stop the tests blocking the
browser and a new batch will be started.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line266">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.currentTestPointer_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">currentTestPointer_</span>
        : 
     </div>


     <div class="entryOverview">
       Pointer to the current test.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line274">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry protected">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.exceptionBeforeTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">exceptionBeforeTest</span>
        : 
     </div>


     <div class="entryOverview">
       Exception object that was detected before a test runs.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line234">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.name_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">name_</span>
        : 
     </div>


     <div class="entryOverview">
       A name for the test case.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line63">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.onCompleteCallback_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">onCompleteCallback_</span>
        : 
     </div>


     <div class="entryOverview">
       Optional callback that will be executed when the test has finalized.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line282">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.order"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">order</span>
        : 
     </div>


     <div class="entryOverview">
       The order to run the auto-discovered tests in.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line171">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.result_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">result_</span>
        : <span class="type"><a href="class_goog_testing_TestCase_Result.html">goog.testing.TestCase.Result</a></span>
     </div>


     <div class="entryOverview">
       Object used to encapsulate the test results.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line122">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.running"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">running</span>
        : 
     </div>


     <div class="entryOverview">
       Whether the test case is running.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line248">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.startTime_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">startTime_</span>
        : 
     </div>


     <div class="entryOverview">
       Timestamp for when the test was started.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line256">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.started"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">started</span>
        : 
     </div>


     <div class="entryOverview">
       Whether the test case has ever tried to execute.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line241">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.testsToRun_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">testsToRun_</span>
        : 
     </div>


     <div class="entryOverview">
       Set of test names and/or indices to execute, or null if all tests should
be executed.

Indices are included to allow automation tools to run a subset of the
tests without knowing the exact contents of the test file.

Indices should only be used with SORTED ordering.

Example valid values:
<ul><li>[testName]
<li>[testName1, testName2]
<li>[2] - will run the 3rd test in the order specified
<li>[1,3,5]
<li>[testName1, testName2, 3, 5] - will work
<ul></ul></li></li></li></li></li></ul>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line92">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.TestCase.prototype.tests_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">tests_</span>
        : 
     </div>


     <div class="entryOverview">
       Array of test functions that can be executed.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_testcase.js.source.html#line70">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Static Methods</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.AsyncTestCase.createAndInstall"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.AsyncTestCase.</span><span class="entryName">createAndInstall<span class="args">(<span class="arg">opt_name</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_testing_AsyncTestCase.html">goog.testing.AsyncTestCase</a></span>
      </div>


     <div class="entryOverview">
       Preferred way of creating an AsyncTestCase. Creates one and initializes it
with the G_testRunner.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_name</span>
        : <span class="type">string=</span>
        <div class="entryOverview">A descriptive name for the test case.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_testing_AsyncTestCase.html">goog.testing.AsyncTestCase</a></span>&nbsp;
            The created AsyncTestCase.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line352">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



<h2>Static Properties</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.TopStackFuncResult_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.AsyncTestCase.</span><span class="entryName">TopStackFuncResult_</span>
        : 
     </div>


     <div class="entryOverview">
       Represents result of top stack function call.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line136">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.testing.AsyncTestCase.superClass_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.AsyncTestCase.</span><span class="entryName">superClass_</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_asynctestcase.js.source.html#line125">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package testing</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="testing.AsyncTestCase"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
